package com.mall.db.api;

import com.mall.pojo.UmsAdminRoleRelation;

import java.util.List;

public interface UmsAdminRoleRelationApi {
    /**
     * 根据当前管理员id查询角色关系
     * @param id
     * @return
     */
    UmsAdminRoleRelation findByAdmin(Long id);

    Integer add(UmsAdminRoleRelation relation);

    void delete(Integer adminId);

    UmsAdminRoleRelation find(Integer adminId, Integer roleId);

    List<UmsAdminRoleRelation> findByAdminId(Long adminId);
}
